package com.duan.minio.feign;

import com.duan.entity.Result;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@EnableFeignClients("minio")
public interface MinioFeign {
    /**
     * 文件上传
     * @param file
     * @return
     */
    @PostMapping("/minio/upload")
    Result upload(@RequestParam(name = "file", required = false) MultipartFile file);



}
